flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-1027) CLI "run" command does not support flags
Date Wed, 24 Dec 2014 17:42:13 GMT

    [ https://issues.apache.org/jira/browse/FLINK-1027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14258397#comment-14258397
] 

ASF GitHub Bot commented on FLINK-1027:
---------------------------------------

GitHub user aalexandrov opened a pull request:

    https://github.com/apache/incubator-flink/pull/278

    [FLINK-1027] Added support for '--' and '-' prefixed tokens in CLI program arguments.

    This is a fix for #161 following the suggestion from Moritz. I changed line the parser
call to:
    
    ```
    parser.parse(RUN_OPTIONS, args, true);
    ```
    
    Closes #161.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aalexandrov/incubator-flink FLINK-1027

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-flink/pull/278.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #278
    
----
commit b5ee8d1aebf43ce8e9549f5f3fc84ed6f8c76e6a
Author: Alexander Alexandrov <alexander.s.alexandrov@gmail.com>
Date:   2014-12-24T11:49:56Z

    [FLINK-1027] Added support for '--' and '-' prefixed tokens in CLI program arguments.

----


> CLI "run" command does not support flags
> ----------------------------------------
>
>                 Key: FLINK-1027
>                 URL: https://issues.apache.org/jira/browse/FLINK-1027
>             Project: Flink
>          Issue Type: Improvement
>          Components: JobManager
>    Affects Versions: 0.6-incubating
>            Reporter: Alexander Alexandrov
>            Assignee: Alexander Alexandrov
>            Priority: Trivial
>             Fix For: 0.8
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> When submitting a job from the CLI frontend, having flags as arguments is not possible.
I would like my jar to be able to parse optional arguments formatted as "-a" or "--argument",
e.g.
> flink run /path/to/logreg.jar --iterations 10 --alpha 0.2 /path/to/in /path/to/out
> If nobody objects I will submit a patch for that.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message