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

DM-4236 #11

Merged
merged 3 commits into from Mar 15, 2016
Merged

DM-4236 #11

merged 3 commits into from Mar 15, 2016

Conversation

r-owen
Copy link
Contributor

@r-owen r-owen commented Mar 11, 2016

This prevents unintentionally writing in the top-level data repo
by leaving off "--output" or "--rerun" or $PIPE_OUTPUT_ROOT. If
none of these is set, we error out. This behavior can be disabled
by setting ArgumentParser.requireOutput = False.

In the process, cleaned up the rerun handling, so that the actual
rerun name is stored in namespace.rerun instead of a directory.

Added a test demonstrating various ways of specifying the output
directory.

self.error("no output directory specified.\n"
"An output directory must be specified with the --output or --rerun\n"
"command-line arguments or the PIPE_OUTPUT_ROOT environment variable.\n")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest removing the bit about PIPE_OUTPUT_ROOT (but see associated request near line 515)

# The first commit's message is:

ArgumentParser: require an output to be specified

This prevents unintentionally writing in the top-level data repo
by leaving off "--output" or "--rerun" or $PIPE_OUTPUT_ROOT. If
none of these is set, we error out. This behavior can be disabled
by setting ArgumentParser.requireOutput = False.

In the process, cleaned up the rerun handling, so that the actual
rerun name is stored in namespace.rerun instead of a directory.

Added a test demonstrating various ways of specifying the output
directory.

# This is the 2nd commit message:

squash! ArgumentParser: require an output to be specified

Add InputOnlyArgumentParser
This prevents unintentionally writing in the top-level data repo
by leaving off "--output" or "--rerun" or $PIPE_OUTPUT_ROOT. If
none of these is set, we error out. This behavior can be disabled
by setting ArgumentParser.requireOutput = False or by using the
InputOnlyArgumentParser.

In the process, cleaned up the rerun handling, so that the actual
rerun name is stored in namespace.rerun instead of a directory.

Added a test demonstrating various ways of specifying the output
directory.
$PIPE_OUTPUT_ROOT should be a parent directory. Stop using it
as a default output directory if --output or --rerun not specified.
@PaulPrice PaulPrice merged commit d2c25a5 into master Mar 15, 2016
@ktlim ktlim deleted the tickets/DM-4236 branch August 25, 2018 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants