Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update command-line interface #200

Open
NiklasRosenstein opened this issue Sep 14, 2018 · 0 comments
Open

Update command-line interface #200

NiklasRosenstein opened this issue Sep 14, 2018 · 0 comments
Assignees
Milestone

Comments

@NiklasRosenstein
Copy link
Collaborator

NiklasRosenstein commented Sep 14, 2018

Currently the Craftr CLI makes heavy use of flags to allow the incorparation of multiple steps. Most commonly --configure and --build is mixed. But positional arguments can not be properly specified for in a multi-staged command. Currently there is only --build and --clean for which it makes sense to take the same positional arguments if both are used at the same time, but if we introduce new stages which use different positional arguments, combining them in a single command becomes difficult.

Positional arguments in the Craftr CLI should be context sensitive depending on previously specified flags. For example, after --configure you should be able to specify options, but after --build or --clean you should be able to specify targets. Example:

craftr -configure osx:minversion=10.11 -build main:cxx.run -clean @build

It should also be possible to more easily group arguments for stages, eg. when specifying additional flags for the ninja backend:

craftr -ninja [ -v ] -build

(The spaces around -v should not matter)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant