Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L lambdapp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Dale Weiler
  • lambdapp
  • Merge requests
  • !6

streamline the options parser

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/nanwu/master into master 11 years ago
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: nanwu

Streamline the options parser:

  1. Reformat the usage as: lambdapp [options] source_file [target_file]
  2. Remove the -o option, put argument for output file at the end of command.
  3. reconsolidate the handling for illegal options.
Loading
Loading

Activity


  • Administrator
    Administrator @root · 11 years ago
    Author

    Created by: Blub

    While I can understand the desire to be POSIXLY_CORRECT (the && !file part in the option loop) I don't see why -o should be removed even as an optional way. And removing the option-delimiter -- is never a good idea. Proper scripts are supposed to always make it clear what are options, and what are file parameters which could come from some place else and possibly even start with -. Invocations of the form somecommand --my --opts -- $USER_ARGS are common and good practice, and should be supported.

  • Administrator
    Administrator @root · 11 years ago
    Author

    Created by: nanwu

    Absolutely. I was trying to simplicate the procedure however misunderstood the purpose of "--".

  • Dale Weiler closed 8 years ago

    closed

Please register or sign in to reply
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference: twbs/bootstrap!6705
Source branch: github/fork/nanwu/master

Menu

Explore Projects Groups Snippets